package com.nd.android.payment.controller;

import com.nd.android.payment.business.operateImp.PayRechargeOperateImpl;
import com.nd.android.payment.controller.IOperate.IPayRechargeOperate;



/**
 * 明星APP对外接口工具类
 * 
 * <br>Created 2014-11-13 上午11:03:40
 * @version  
 * @author   zhangqr		
 *
 * @see
 */

public final class PaymentFactory {
    /**
     * 支付相关的操作
     */
    private static IPayRechargeOperate payOperate;
    
	/**
	 * 单实例内部类
	 * 
	 * <br>Created 2014-11-10 上午11:21:42
	 * @version  StarAppUtilFactory
	 * @author   zhangqr		
	 *
	 * @see
	 */
	private static class SingletonHolder {
		private static final PaymentFactory INSTANCE = new PaymentFactory();
	}
	
	/**
	 * 获取当前群工具类方法的实例
	 * 
	 * <br>Created 2014-11-10 上午11:24:48
	 * @return
	 * @author       zhangqr
	 */
    public static PaymentFactory getInstance() {
        return SingletonHolder.INSTANCE;
    }
    
    /**
     * 获取支付的操作
     * 
     * <br>Created 2014-11-10 上午11:27:19
     * @return
     * @author       zhangqr
     */
    public IPayRechargeOperate getPayRechargeOperate() {
        if(payOperate == null) {
            payOperate = new PayRechargeOperateImpl();
        }
        return payOperate;
    }
	
	
	
}
